package csdn.xiancheng.li06;

public class Test {
    public static void main(String[] args) {
        MyPrint print=new MyPrint();
        Thread t=new Thread(){
            @Override
            public void run() {
                for (int i = 0; i < 10; i++) {
                    print.pr();
                }
                for (int j = 0; j < 10; j++) {
                    print.pr2();
                }
            }
        };
        t.start();
    }
}
